package com.ldy.chapter15;
/**
 * 线程边界问题
 * @ClassName: com.ldy.chapter15.BasicBounds.java
 * @author: songxulin
 * @date :  2020-10-22 21:05
 * @version V1.0
 */
public class BasicBounds {

}

interface HasColor{
   java.awt.Color getColor();
}

class Colored<T extends HasColor>{
    T item;
    Colored(T item) {
        this.item = item;
    }
    T getItem(){
        return item;
    }
    java.awt.Color getColor(){
        return item.getColor();
    }
}

class Dimensin{
    public int x,y,z;
}


